@ECHO OFF
REM
REM Change the paths and filenames according to your system/programs
REM
SET NASM=e:\rapidq\nasmw
SET RQ=e:\rapidq\rc
SET INC_PATH=e:\rapidq\inc
SET LIB_PATH=e:\rapidq\lib
REM
SET ASM_FILE=
SET BAS_FILE=Blackfoot
REM
REM  NO extensions to file names!!!!
REM  IF NO asm file in project leave the field blank.
REM
IF "%ASM_FILE%" == "" GOTO DOBAS
ECHO Assembling %ASM_FILE%.asm to %ASM_FILE%.bin
ECHO .
%NASM% -f bin %ASM_FILE%.asm -l %ASM_FILE%.txt -o %ASM_FILE%.bin
IF ERRORLEVEL 1 GOTO ERRORASM
REM
ECHO %ASM_FILE%.bin created ok!
ECHO .
REM
:DOBAS
%RQ% -I%INC_PATH% -L%LIB_PATH% %BAS_FILE%.bas
IF ERRORLEVEL 1 GOTO ERRORCOMP
ECHO .
ECHO %BAS_FILE%.exe created ok!
ECHO .
ECHO DONE!
GOTO Done
REM
:ERRORASM
ECHO .
ECHO %ASM_FILE%.asm assembly FAILED!
GOTO Done
:ERRORCOMP
ECHO .
ECHO %BAS_FILE%.bas compile/link FAILED!
:Done
PAUSE